//-----------------------------------------------------------------------
// <copyright file="a_ShipCostService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ShipCostService
    {
        #region a_ShipCost

        public static void Createa_ShipCost(a_ShipCost a_ShipCost)
        {            
            try
            {
                a_ShipCostDAO a_ShipCostDAO = new a_ShipCostDAO();
                a_ShipCostDAO.Createa_ShipCost(a_ShipCost);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_ShipCost(a_ShipCost a_ShipCost)
        {            
            try
            {
                a_ShipCostDAO a_ShipCostDAO = new a_ShipCostDAO();
                a_ShipCostDAO.Updatea_ShipCost(a_ShipCost);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_ShipCost(int shipCostID)
        {            
            try
            {
                a_ShipCostDAO a_ShipCostDAO = new a_ShipCostDAO();
                a_ShipCostDAO.Deletea_ShipCost(shipCostID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_ShipCost Geta_ShipCost(int shipCostID)
        {            
            try
            {
                a_ShipCostDAO a_ShipCostDAO = new a_ShipCostDAO();
                return a_ShipCostDAO.Geta_ShipCost(shipCostID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ShipCostCollection Geta_ShipCostList(a_ShipCostColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ShipCostDAO a_ShipCostDAO = new a_ShipCostDAO();
                return a_ShipCostDAO.Geta_ShipCostList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ShipCostCollection Geta_ShipCostList(a_ShipCostColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ShipCostDAO a_ShipCostDAO = new a_ShipCostDAO();
                return a_ShipCostDAO.Geta_ShipCostList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}